import request from "../request.js"

// 分类
function findCategory(id){
	return request({
		url:`/lejuClient/productCategory/findCategory/${id}`
	})
}

// 商品列表
function findProductList(start,limit,data){
	return request({
		url:`/lejuClient/product/findProductList/${start}/${limit}`,
		method: 'post',
		data
	})
}

// 商品详情
function productDetail(id){
	return request({
		url:`/lejuClient/product/productDetail/${id}`
	})
}

// 添加购物车
function addCart(data){
	return request({
		url:"/lejuClient/cart/addCart",
		method: 'post',
		data
	})
}

export {
	findCategory,
	findProductList,
	productDetail,
	addCart
}